#ifndef RP2PLATFORM_H
#define RP2PLATFORM_H

namespace Rp2
{

// find the current platform
#define RP2_PLATFORM_WIN32	0
#define RP2_PLATFORM_IPHONE	1

#if defined(_WIN32)
#define RP2_PLATFORM RP2_PLATFORM_WIN32
#else
#define RP2_PLATFORM RP2_PLATFORM_IPHONE
#endif

// find the current compiler
#define RP2_COMPILER_MSVC	0
#define RP2_COMPILER_OTHERS	1

#if defined(_MSC_VER)
#define RP2_COMPILER RP2_COMPILER_MSVC
#else
#define RP2_COMPILER RP2_COMPILER_OTHERS
#endif

// if in debug mode
// Win32 compilers use _DEBUG for specifying debug builds.
#if defined(_DEBUG) || defined(DEBUG)
#define RP2_DEBUG 1
#else
#define RP2_DEBUG 0
#endif


// if use UNITCODE
#ifdef  UNICODE                     
#define TC(quote) L##quote
#define tCHAR wchar_t
#else   /* UNICODE */               
#define TC(quote) quote
#define tCHAR char
#endif




}


#endif